import request from '@/utils/request'

// 查询身份认证-二要素列表
export function listFactor(query) {
  return request({
    url: '/identity/factor/list',
    method: 'get',
    params: query
  })
}

// 查询身份认证-二要素详细
export function getFactor(id) {
  return request({
    url: '/identity/factor/' + id,
    method: 'get'
  })
}

// 新增身份认证-二要素
export function addFactor(data) {
  return request({
    url: '/identity/factor',
    method: 'post',
    data: data
  })
}

// 修改身份认证-二要素
export function updateFactor(data) {
  return request({
    url: '/identity/factor',
    method: 'put',
    data: data
  })
}

// 删除身份认证-二要素
export function delFactor(id) {
  return request({
    url: '/identity/factor/' + id,
    method: 'delete'
  })
}
